package net.ikenway.springboot.demo.Model.Dto;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * @author MasterKenway <zk@ikenway.net>
 * @Description
 * @date Created Date 12/19/2020
 */
@Data
@ToString(includeFieldNames=false)
@NoArgsConstructor
@AllArgsConstructor
public class AddressDto implements Serializable {
    private Long addressId;

    @NotNull(message = "联系人名不能为空")
    @NotEmpty(message = "联系人名不能为空")
    private String contactName;

    @NotNull(message = "手机号不能为空")
    @NotEmpty(message = "手机号不能为空")
    private String phoneNumber;

    @NotNull(message = "省份不能为空")
    @NotEmpty(message = "省份不能为空")
    private String province;

    @NotNull(message = "城市不能为空")
    @NotEmpty(message = "城市不能为空")
    private String city;

    @NotNull(message = "街道不能为空")
    @NotEmpty(message = "街道不能为空")
    private String street;

    @NotNull(message = "详细地址不能为空")
    @NotEmpty(message = "详细地址不能为空")
    private String remark;
}
